<%=stylesheet_link_tag "auctions" %>
<%= form_for(@auction) do |f| %>
  <% if @auction.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@auction.errors.count, "error") %> prohibited this auction from being saved:</h2>

      <ul>
      <% @auction.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %>
    <%= f.text_field :name %>
  </div>
  <%= f.hidden_field :user_id %>
  <div class="field">
    <%= f.label :start %>
    <%= f.datetime_select :start %>
  </div>
  <div class="field">
    <%= f.label :finish %>
    <%= f.datetime_select :finish%>
  </div>
  <div class="field">
    <%= f.label :auction_type_id %>
    <select name="auction[auction_type_id]">
      <option value="1">Đấu giá kiểu Anh</option>
      <option value="2">Đấu giá kiểu Hà Lan</option>
    </select>

  </div>

  <div class="actions">
    <label style="color: #eeeeee; float:left;width: 150px; margin-right: 30px;">. </label>
       <%= f.submit %>
  </div>
<% end %>
